/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */

package modelLayer;

public class Address {
	
	private int addressId;
	private String locationName;
	private String street;
	private String houseNo;
	private String postalCode;
	private String city;
	private String country;
	private int sequenceNo;
	
	
	/**
	 * Constructor 1: For creating from ctrClass.
	 * 
	 * @param addressId
	 * @param locationName
	 * @param street
	 * @param houseNo
	 * @param postalCode
	 * @param city
	 * @param country
	 */
	public Address(String locationName, String street, String houseNo, String postalCode, String city,
			String country, int sequence) {
		this.addressId = 0;
		this.locationName = locationName;
		this.street = street;
		this.houseNo = houseNo;
		this.postalCode = postalCode;
		this.city = city;
		this.country = country;
		this.sequenceNo = sequence;
	}
	
	/**
	 * Constructor 2: For creation from dbClass
	 */
	public Address(){
		addressId = 0;
		locationName = "";
		street = "";
		houseNo = "";
		postalCode = "";
		city = "";
		country = "";
		sequenceNo = 0;
	}
	
	/**
	 * Constructor 3: For creation as association.
	 * 
	 * @param addressId
	 */
	public Address(int addressId) {
		this.addressId = addressId;
		locationName = "";
		street = "";
		houseNo = "";
		postalCode = "";
		city = "";
		country = "";
		sequenceNo = 0;
	}
	
	
	public int getAddressId() {
		return addressId;
	}
	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}
	public String getLocationName() {
		return locationName;
	}
	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getHouseNo() {
		return houseNo;
	}
	public void setHouseNo(String houseNo) {
		this.houseNo = houseNo;
	}
	public String getPostalCode() {
		return postalCode;
	}
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	
	public int getSequenceNo() {
		return sequenceNo;
	}
	
	public void setSequenceNo(int sequenceNo) {
		this.sequenceNo = sequenceNo;
	}
	
}
